package cn.itcast.gjp.service;

import java.util.List;

import cn.itcast.gjp.dao.ZhangWuDao;
import cn.itcast.gjp.domain.ZhangWu;

public class ZhangWuService {
	private ZhangWuDao dao=new ZhangWuDao();
	public boolean deleteZhangWu(int zwid){
		boolean b = dao.deleteZhangWu(zwid);
		return b;
	}
	public boolean editZhangWu(ZhangWu zw){
		boolean b = dao.editZhangWu(zw);
		return b;
	}
	public List<ZhangWu> selectAll(){
		List<ZhangWu> list = dao.selectAll();
		return list;
	}
	public List<ZhangWu> select(String startDate,String endDate){
		return dao.select(startDate, endDate);
		
	}
	public boolean addZhangWU(ZhangWu zw){
		boolean b = dao.addZhangWU(zw);
		return b;
	}

}
